/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.messageobj;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author fredi
 */
public class SearchResult extends GenericMessage implements Serializable{

    private String origen="";
    private String dest="";
    private List<Contents> cnt=new LinkedList<Contents>();
    
    public SearchResult(String origen, String dest){
        this.origen=origen;
        this.dest=dest;
    }
    
    public List<Contents> getContents() {
        return cnt;
    }

    public boolean addContents(Contents c) {
        return cnt.add(c);
    }

    public String getOrigen() {
        return this.origen;
    }

    public String getDest() {
        return this.dest;
    }
    
}
